<script type="text/javascript">
$(document).ready(function(){
	// functions
	<?php require('library/js/validator/functions.js');?>
	
	// role
	<?php require('library/js/form/input.role.js');?>
	
	// validation config
	<?php require('library/js/validator/config.registrasi.js');?>	
	
	$('input#tgl_persilangan').datePicker();
});

</script>
<textarea style="display:none" id="template_role">
	<li><span>
		<label><span>{0}</span></label>
		<select name="sub_bagian-{0}" id="sub_bagian-{0}" class="sub_bagian">
			<option value="" disabled="disabled">-- KEBUN --</option>
			<option value="identifikasi_titik">WEB GIS</option>
			<option value="perawatan">Perawatan</option>
			<option value="penanaman">Penanaman</option>
			<option value="pembibitan_mainnursery">Pembibitan mainnursery</option>
			<option value="pembibitan_prenursery">Pembibitan prenursery</option>
			<option value="bunga_pohon">Bunga pohon</option>
			<option value="bagging_jantan">Bagging jantan</option>
			<option value="bagging_betina">Bagging betina</option>
			<option value="polinasi">Polinasi</option>
			<option value="panen_biji_kelapasawit">Panen biji kelapasawit</option>
			<option value="panen_bunga_jantan">Panen bunga jantan</option>
			<option value="pembuangan">Pembuangan</option>
			<option value="" disabled="disabled">-- Produksi : Inventaris Biji --</option>
			<option value="inv_pencacahan">Inv pencacahan</option>
			<option value="inv_depericarping_dan_polishing">Inv depericarping dan polishing</option>
			<option value="inv_pencucian">Inv pencucian</option>
			<option value="inv_pengeringan">Inv pengeringan</option>
			<option value="inv_seleksi">Inv seleksi</option>
			<option value="inv_ruang_panas">Inv ruang panas</option>
			<option value="inv_ruang_dingin">Inv ruang dingin</option>
			<option value="inv_perendaman">Inv perendaman</option>
			<option value="inv_germinasi">Inv germinasi</option>
			<option value="inv_seleksi_akhir">Inv seleksi akhir</option>
			<option value="" disabled="disabled">-- Produksi : Perawatan Biji --</option>				
			<option value="rwt_pencacahan">Rwt pencacahan</option>
			<option value="rwt_depericarping_dan_polishing">Rwt depericarping dan polishing</option>
			<option value="rwt_pencucian">Rwt pencucian</option>
			<option value="rwt_pengeringan">Rwt pengeringan</option>
			<option value="rwt_seleksi">Rwt seleksi</option>
			<option value="rwt_ruang_panas">Rwt ruang panas</option>
			<option value="rwt_ruang_dingin">Rwt ruang dingin</option>
			<option value="rwt_perendaman">Rwt perendaman</option>
			<option value="rwt_germinasi">Rwt germinasi</option>
			<option value="rwt_seleksi_akhir">Rwt seleksi akhir</option>
			<option value="" disabled="disabled">-- Pemasaran --</option>				
			<option value="stok">Data Stok</option>
			<option value="pelanggan">Pelanggan</option>
			<option value="kontrak">Kontrak</option>
			<option value="po">PO</option>
			<option value="pengiriman">Pengiriman</option>
			<option value="bap">Bap</option>
			<option value="" disabled="disabled">-- Administrasi --</option>				
			<option value="registrasi">Registrasi Akun</option>
			<option value="harga">Management Harga Material</option>				
		</select>
		<select name="role-{0}" id="role-{0}">
			<option value="view">View</option>
			<option value="entry">View + Entry</option>
			<option value="manage">View + Edit</option>
			<option value="delete">View + Delete</option>
			<option value="super">View + Entry + Edit + Delete</option>								
		</select>
		<input type="button" class="hapus_role button"  name="hapus_role" value="Hapus"/>		
	</span></li>
</textarea>
<div class="title">Registrasi Akun</div>
<form name="frm_<?=$subbagian;?>" id="frm_<?=$subbagian;?>" method="post" action="index.php?bagian=<?=$bagian;?>&subbagian=<?=$subbagian;?>&action=confirm">
    <ul>
    	<li class="header"><span>Akun</span></li>
        <li><span>
            <label>Username :</label>
            <input type="text" id="username" name="username" value=""/>
        </span></li>
        <li><span>
            <label>Password:</label>
            <input type="text" id="password" name="password" value=""/>
        </span></li>
	</ul>
	<ul>
		<li class="header"><span>Otorisasi</span></li>        
        <li class="desc">
			<span class="col1">Halaman</span>
			<span class="col5">Peran</span>
		</li>
		<li class="button">
			<input type="button" name="tambah_role" id="tambah_role" value="Tambah Baris"/>
	    </li>
    </ul>
	<ul>
		<li class="header"><span>Simpan</span></li>
		<li class="button"><span>
			<input type="submit" name="submit" id="submit" value="Simpan Data" class="simpan"/>
		</span></li>
	</ul>
</form>